/**
 * Created by cql-cql-cql on 2017/6/2 0002.
 */
const mongoose = require('mongoose');

//user
var submit = new mongoose.Schema({
    title:     String,   //标题
    teacher:   String,   //老师
    stu_class: String,   //教室   
    date:      Date  ,   //有效日期  
    format:    String,   //作业格式
    check:               //是否可上传 true可上传 false不可上传
    {
              type:Boolean,
              default: true,
    },   
    ps:        String,   
});

var submitModel = mongoose.model('Submit', submit);
module.exports = submitModel


